← Back to issue list

snapcraft enable-ci does not work for Electron projects

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1741444
Type
issue
State
open
Author
~ev
Labels
Created
2018-01-05 10:24:48.261223+00:00
Updated
2018-01-05 10:24:48.261223+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

There are two problems in enabling Travis builds of an Electron snap: 1) snapcraft enable-ci travis will blow up if it cannot find a snapcraft.yaml. The snapcraft.yaml file is created by electron-builder during an npm run and never retained. 2) Electron projects cannot be built by calling `snapcraft`. They must be built using `npm run dist` (or some other package.json script stanza). snapcraft enable-ci travis puts `snapcraft && snapcraft push *.snap --release edge` in the .travis.yml, which will not work.

Evaluation history

No evaluation history available.